package com.topfinance.payment.ebo;

// Generated 2011-1-9 9:12:59 by Hibernate Tools 3.4.0.Beta1

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TCfgPortOut generated by hbm2java
 */
@Entity
@Table(name = "T_CFG_PORT_OUT")
public class TCfgPortOutEbo implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3865113127270170305L;

	private Integer oid;
	
	private String name;

	private String direction;

	private String url;

	private TCfgFormatEbo TCfgFormat;

	private TCfgNodeEbo TCfgNode;
	
	private TCfgTransOutEbo TCfgTransOut;

	public TCfgPortOutEbo() {
	}

	public TCfgPortOutEbo(Integer oid) {
		this.oid = oid;
	}

	public TCfgPortOutEbo(Integer oid, TCfgFormatEbo TCfgFormat, TCfgNodeEbo TCfgNode, String name, String direction, String url) {
		this.oid = oid;
		this.TCfgFormat = TCfgFormat;
		this.TCfgNode = TCfgNode;
		this.name = name;
		this.direction = direction;
		this.url = url;
	}

	@Id
	@Column(name = "OID", unique = true, nullable = false, precision = 10, scale = 0)
	@SequenceGenerator(name = "CFG_SEQUNCE_GEN", sequenceName = "S_CFG_SEQUNCE")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "CFG_SEQUNCE_GEN")		
	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	@Column(name = "NAME", length = 80)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DIRECTION", length = 1)
	public String getDirection() {
		return this.direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	@Column(name = "URL")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "FORMAT_ID")
	public TCfgFormatEbo getTCfgFormat() {
		return this.TCfgFormat;
	}

	public void setTCfgFormat(TCfgFormatEbo TCfgFormat) {
		this.TCfgFormat = TCfgFormat;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "NODE_ID")
	public TCfgNodeEbo getTCfgNode() {
		return this.TCfgNode;
	}

	public void setTCfgNode(TCfgNodeEbo TCfgNode) {
		this.TCfgNode = TCfgNode;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "TRANS_INFO_ID")
	public TCfgTransOutEbo getTCfgTransOut() {
		return TCfgTransOut;
	}

	public void setTCfgTransOut(TCfgTransOutEbo tCfgTransOut) {
		TCfgTransOut = tCfgTransOut;
	}

}
